#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.setCentralWidget(&w.wid);
    w.wid.setLayout(&w.lay);
    w.lay.addWidget(&w.table);
    //w.lay.addWidget(&w.line);
    w.lay.addWidget(&w.table1);
    w.show();
    w.table1.setColumnCount(1);
    w.table1.setRowCount(1);
    w.table.setColumnCount(2);
    w.table.setRowCount(2);
    QTableWidgetItem *firstRow = new QTableWidgetItem("blavla");
    w.table.setItem(1,1,firstRow);
    QTableWidgetItem *firstRow1 = new QTableWidgetItem("blaa");
    w.table.setItem(1,0,firstRow1);
    QTableWidgetItem *firstRow2= new QTableWidgetItem("ba");
    w.table.setItem(0,1,firstRow2);
    return a.exec();
}
